//
//  ZGLiveScrollView.swift
//  ZhangGuang
//
//  Created by 叁拾叁 on 2020/8/10.
//  Copyright © 2020 叁拾叁. All rights reserved.
//

import UIKit

class ZGLiveScrollView: UIScrollView {
    
    var location: CGPoint!
    var blanner: UIView!
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
//        let touch : UITouch! = touches.first
//        location = touch.location(in: self)
        //        TouchPointImg.center = location
    }
    
//    override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
//        let touch : UITouch! = touches.first
//        location = touch.locationInView(self)
//
//        if location.x<0 { location.x=0}
//        if location.y<0 { location.y=0}
//        if location.x > self.frame.width { location.x=self.frame.width}
//        if location.y > self.frame.height { location.y=self.frame.height}
//
//        TouchPoint.center = location
//    }
    override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
//        let touch : UITouch! = touches.first
//        location = touch.location(in: self)
//
//        if location.x<0 { location.x=0}
//        if location.y<0 { location.y=0}
//        if location.x > self.frame.width { location.x=self.frame.width}
//        if location.y > self.frame.height { location.y=self.frame.height}

//        TouchPoint.center = location
    }
    
    override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
//        let touch : UITouch! = touches.first
//        location = touch.location(in: self)
//        if location.x<0 { location.x=0}
//        if location.y<0 { location.y=0}
//        if location.x > self.blanner.frame.width { location.x=self.blanner.frame.width}
//        if location.y > self.blanner.frame.height { location.y=self.blanner.frame.height}
        
        //        TouchPointImg.center = location
    }
    
}
